package com.zry.fertilizer.view.address


data class Town(var townID: String, var townName: String, val villageList: MutableList<Town>, val stateType: Boolean)
data class Village(val villageID: String, var villageName: String)

fun getTownList(): MutableList<Town> {
    val townList: MutableList<Town> = mutableListOf()

    for (i in 0..20) {
        val villageList: MutableList<Town> = mutableListOf()
        for (a in 0..10) {
            villageList.add(Town("56879$a", "上王村$a", mutableListOf(), false))
        }
        townList.add(Town("12345$i", "盐湖区$i", villageList, false))
    }
    return townList
}